/**
 * Created by xw2sy on 2017-05-04.
 */
$(function(){
    $("#selHallId").ajaxSelect({
        url:appRoot+"card/allHalls.json",
        key:"hallBaseList",
        option:function(r){
            return '<option value="'+r.hall_id+'" required>'+r.hall_name+'</option>';
        }
    });

    if(isPost){
        var importResult=$.trim($("#jsImportResult").text());
        if(importResult){
            util.el.error(importResult);
        }else{
            util.el.success("导入成功！");
            setTimeout(function () {
                location.href=appRoot+"card/manage.html";
            },1000);
        }
    }

});